<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>欢迎登录！</title>

    <link rel="canonical" th:href="@{https://getbootstrap.com/docs/5.1/examples/sign-in/}">

    <link th:href="@{/assets/dist/css/bootstrap.min.css}" rel="stylesheet">



    <!-- Custom styles for this template -->
    <link th:href="@{/css/signin.css}" rel="stylesheet">
</head>
<body class="text-center">

<main class="form-signin form-style">
    <img class="mb-4" th:src="@{/assets/img/osu.png}" alt="" width="100%" height="100%">
    <h3 style="font-size: 32px;text-align: center;color: white">欢迎来到我的博客</h3>
    <h1 class="h3 mb-3 fw-normal">登录</h1>
    <form th:action="@{/login}" method="post">
        <div class="form-floating">
            <input type="text" class="form-control" id="floatingInput" placeholder="username"  name="username">
            <label for="floatingInput" style="color: red">用户名</label>
        </div>
        <div class="form-floating">
            <input type="password" class="form-control" id="floatingPassword" placeholder="Password" name="password">
            <label for="floatingPassword" style="color: red">密码</label>
        </div>
        <div class="checkbox mb-3">
            <label>
                <input type="checkbox" value="remember-me" name="rememberme"> 记住我
            </label>
        </div>
        <div>
            <button class="w-100 btn btn-lg btn-primary" type="submit">登录</button>
            <br/>
            <a th:href="@{/register}">
                <button class="w-100 btn btn-lg btn-primary" type="button">注册</button>
            </a>
        </div>
        <p style="color: white;font-weight: bolder" th:if="${param.error}">用户名或密码错误，登录失败！</p>
    </form>
    <p class="mt-5 mb-3 text-muted">&copy; 4KCalambre</p>
</main>



</body>
</html>